package com.olddriver.crm.mapper;

import com.olddriver.crm.domain.PaidList;
import com.olddriver.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaidListMapper {
    int insert(@Param("record") PaidList record, @Param("Iid") Long id);

    PaidList selectByPrimaryKey(Long id);

    List<PaidList> selectAll();

    int queryTotal(QueryObject qo);

    List<PaidList> queryRows(QueryObject qo);

    void pay(Long id);

    PaidList selectReceiptsByInsuranceNum(String InsuranceNum);

    Long selectInsuranceListById(@Param("id") Long id);

    PaidList getPaidListBySn(String policySn);

}